from rest_framework.viewsets import ModelViewSet

from meiduo_admin.serializers.specsSerializer import SpecsSerializer
from goods.models import SPUSpecification
from meiduo_admin.utils import PaginatorShow
from meiduo_admin.permissions import *


class SpecsView(ModelViewSet):
    queryset = SPUSpecification.objects.all().order_by("id")
    serializer_class = SpecsSerializer
    permission_classes = [IsAdminUser]

    pagination_class = PaginatorShow


